








//
//  MapOffBuilSearchView.m
//  Zuker
//
//  Created by MB__Lee on 2018/5/20.
//  Copyright © 2018年 zuke.com. All rights reserved.
//

#import "MapOffBuilSearchView.h"


@interface MapOffBuilSearchView()<BaseTypeTableVeiwDelegate>

@end


@implementation MapOffBuilSearchView
-(instancetype)initWithFrame:(CGRect)frame btnMut:(NSArray *)btnMut{
    if (self = [super initWithFrame:frame btnMut:btnMut]) {
        self.postModel.category = @"1003";
    }
    return  self;
}


-(void)BaseTypeTableVeiw:(BaseTypeTableVeiw *)tableview sendModel:(BaseModel *)model{
    BaseType type = tableview.baseType;
    if (type == BaseTypeMapModelRent) {
        self.postModel.rent_end = model.value_end;
        self.postModel.rent_start = model.value_start;
    }else if (type == BaseTypeMapModelSquare){
        self.postModel.square_end = model.value_end;
        self.postModel.square_start = model.value_start;
    }
      [self resetFrameAndRemoveView:tableview];
    
}
-(void)BaseTypeTableVeiw:(BaseTypeTableVeiw *)tableview sendSelectedIndexPathString:(NSString *)contentString{
    BaseType type = tableview.baseType;
    if (type == BaseTypeMapBaseCategory) {
        
        self.postModel.bedroom = contentString;
    }else if (type == BaseTypeMapBaseCharater){
        self.postModel.characteristic = contentString;
    }
      [self resetFrameAndRemoveView:tableview];
}
@end
